package com.ywl.exercise.entity;


import java.sql.Date;

import javax.persistence.Table;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Basic;


@Table(name = "users", schema = "", catalog = "crazyguessimages")//对应的表名和数据库名
@Entity
public class UserEntity {
	private String loginid; //登录名
	private String password; //密码
	private String nickname; //昵称
	private Date birthday; //生日
	
	@Column(name = "loginid", nullable = false, insertable = true, updatable = true, length = 30, precision = 0)
    @Id //主键
    public String getLoginid() {
		return loginid;
	}
	public void setLoginid(String loginid) {
		this.loginid = loginid;
	}
	
	@Column(name = "password", nullable = true, insertable = true, updatable = true, length = 20, precision = 0)
    @Basic
    public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	@Column(name = "nickname", nullable = true, insertable = true, updatable = true, length = 20, precision = 0)
	@Basic
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	@Column(name = "birthday", nullable = true, insertable = true, updatable = true, length = 20, precision = 0)
	@Basic
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	
}
